import 'package:flutter/material.dart';
import 'package:flutter_comm100/live_chat_view.dart';

void main() {
  runApp(const MyApp());
}

class MyApp extends StatefulWidget {
  const MyApp({Key? key}) : super(key: key);

  @override
  State<MyApp> createState() => _MyAppState();
}

class _MyAppState extends State<MyApp> {


  @override
  void initState() {
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
          resizeToAvoidBottomInset: false,
          backgroundColor: Colors.blue,
          appBar: AppBar(
            title: const Text('Plugin example app'),
          ),
          body: const Center(
            child: SizedBox(
                width: double.infinity,
                height: double.infinity,
                child: LiveChatWidget(
                  url:
                      'https://chatserver.comm100.com/chatwindowmobile.aspx?siteId=XXXX&planId=XXX',
                ) //Text('Running on: $_platformVersion\n'),
                ),
          )),
    );
  }
}
